package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 绿地/行道树/古树名木  附件表
 *
 * @author code-generate
 * @date 2022-01-05
 */
@Data
@DbTable(tableName = "t_plan_file")
public class PlanFile extends BaseEntity {
        /**
     * 计划ID
     */
    @DbTableField(columnName = "c_plan_id", dbType = DbTypeEnum.VARCHAR)
    public String planId ;

    /**
     * 计划主键id
     */
    @DbTableField(columnName = "c_plan_int_id", dbType = DbTypeEnum.INTEGER)
    public Integer planIntId ;

    /**
     * 文件Id
     */
    @DbTableField(columnName = "c_file_id", dbType = DbTypeEnum.VARCHAR)
    public String fileId ;

    /**
     * 文件名
     */
    @DbTableField(columnName = "c_file_name", dbType = DbTypeEnum.VARCHAR)
    public String fileName ;

    /**
     * 文件类型 0 其他 1 图片 2 word 
     */
    @DbTableField(columnName = "c_file_type", dbType = DbTypeEnum.INTEGER)
    public Integer fileType ;

    /**
     * 业务类型 1 计划上报 2 计划执行 3 计划审核
     */
    @DbTableField(columnName = "c_data_type", dbType = DbTypeEnum.INTEGER)
    public Integer dataType ;

    /**
     * 描述
     */
    @DbTableField(columnName = "c_desc", dbType = DbTypeEnum.VARCHAR)
    public String desc ;

    /**
     * 修改人
     */
    @DbTableField(columnName = "c_db_update_id", dbType = DbTypeEnum.VARCHAR)
    public String dbUpdateId ;

    /**
     * 修改时间
     */
    @DbTableField(columnName = "c_db_update_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime dbUpdateDate ;

    /**
     * 文件后缀
     */
    @DbTableField(columnName = "c_file_suffix", dbType = DbTypeEnum.VARCHAR)
    public String fileSuffix ;


}
